package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.ConstructionRecording;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

/**
 * 施工日志Mapper接口
 * 
 * @author ruoyi
 * @date 2020-07-07
 */
public interface ConstructionRecordingMapper 
{
    /**
     * 查询施工日志
     * 
     * @param cId 施工日志ID
     * @return 施工日志
     */
    public ConstructionRecording selectConstructionRecordingById(Long cId);

    /**
     * 查询施工日志列表
     * 
     * @param constructionRecording 施工日志
     * @return 施工日志集合
     */
    public List<ConstructionRecording> selectConstructionRecordingList(ConstructionRecording constructionRecording);

    /**
     * 新增施工日志
     * 
     * @param constructionRecording 施工日志
     * @return 结果
     */
    public int insertConstructionRecording(ConstructionRecording constructionRecording);

    /**
     * 修改施工日志
     * 
     * @param constructionRecording 施工日志
     * @return 结果
     */
    public int updateConstructionRecording(ConstructionRecording constructionRecording);

    /**
     * 删除施工日志
     * 
     * @param cId 施工日志ID
     * @return 结果
     */
    public int deleteConstructionRecordingById(Long cId);

    /**
     * 批量删除施工日志
     * 
     * @param cIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteConstructionRecordingByIds(String[] cIds);

    /**
     * 查询总项目下对应的施工日志
     */
    @Select("select * from construction_recording where c_pid=#{sid}")
    @ResultMap("ConstructionRecordingResult")
    List<ConstructionRecording> selectConstructionRecordingLists(Long sid);

    /**
     *
     * @param constructionRecording
     * @return 导出所有
     */
    public List<ConstructionRecording> selectall(ConstructionRecording constructionRecording);
}
